import Mock from 'mockjs';

let system = [{
	key: "/login",
	method: "put",
	data: Mock.mock({
		'STATUS': "SUCCESS",
		'data': {
			'id': '@increment(1)',
			'account|6': /[a-z][A-Z][0-9]/,
			'roles|1-5': [{
				'roleId|2': /[0-9]/,
				'roleName|1': [
					"订单管理员",
					"服务管理员",
				]
			}, ],
			'permissions': [
				{
					pId: 1,
					name: "系统管理",
					permissions: [{
							pId: 2,
							name: "用户列表",
							pContext: "/user"
						},
						{
							pId: 3,
							name: "角色列表",
							pContext: "/role"
						},
						{
							pId: 4,
							name: "权限列表",
							pContext: "/permission"
						}
					]
				},
				{
					pId: 5,
					name: "区域管理",
					permissions: [{
						pId: 6,
						name: "区域列表",
						pContext: "/area"
					}]
				},
				{
					pId: 7,
					name: "投诉管理",
					permissions: [{
						pId: 8,
						name: "投诉列表",
						pContext: "/ts"
					}]
				},
				{
					pId: 9,
					name: "村长管理",
					permissions: [{
						pId: 10,
						name: "村长列表",
						pContext: "/autor"
					}]
				},
				{
					pId: 11,
					name: "问题管理",
					permissions: [{
						pId: 12,
						name: "问题列表",
						pContext: "/question"
					}]
				},
			],
			'ct': '@datetime("yyyy-MM-dd hh:mm:ss")'
		}
	})
}];
export default system;
